/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.Event_Types_CodesServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.Event_Types_CodesServiceSoap
 * @generated
 */
public class Event_Types_CodesSoap implements Serializable {
	public static Event_Types_CodesSoap toSoapModel(Event_Types_Codes model) {
		Event_Types_CodesSoap soapModel = new Event_Types_CodesSoap();

		soapModel.setMessages_ID(model.getMessages_ID());
		soapModel.setEventtypecodes_ID(model.getEventtypecodes_ID());

		return soapModel;
	}

	public static Event_Types_CodesSoap[] toSoapModels(
		Event_Types_Codes[] models) {
		Event_Types_CodesSoap[] soapModels = new Event_Types_CodesSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Event_Types_CodesSoap[][] toSoapModels(
		Event_Types_Codes[][] models) {
		Event_Types_CodesSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Event_Types_CodesSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Event_Types_CodesSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Event_Types_CodesSoap[] toSoapModels(
		List<Event_Types_Codes> models) {
		List<Event_Types_CodesSoap> soapModels = new ArrayList<Event_Types_CodesSoap>(models.size());

		for (Event_Types_Codes model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Event_Types_CodesSoap[soapModels.size()]);
	}

	public Event_Types_CodesSoap() {
	}

	public long getPrimaryKey() {
		return _Messages_ID;
	}

	public void setPrimaryKey(long pk) {
		setMessages_ID(pk);
	}

	public long getMessages_ID() {
		return _Messages_ID;
	}

	public void setMessages_ID(long Messages_ID) {
		_Messages_ID = Messages_ID;
	}

	public long getEventtypecodes_ID() {
		return _Eventtypecodes_ID;
	}

	public void setEventtypecodes_ID(long Eventtypecodes_ID) {
		_Eventtypecodes_ID = Eventtypecodes_ID;
	}

	private long _Messages_ID;
	private long _Eventtypecodes_ID;
}